package demo;

import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

public class ServiceDemo {

    @Autowired
    private BaseLogger baseLogger;

    public void busi(){
        System.out.println(baseLogger);
        System.out.println(baseLogger.getName());
        Logger logger = baseLogger.getLogger();
        if(logger.isDebugEnabled()){
            logger.debug("---->>>");
        }

        System.out.println("---------");
    }

}
